#ifndef blankBG_H
#define blankBG_H

#include "bgsource.h"

/**
 * A basic blank background with a solid color. (white only atm)
 */
class BlankBackground : public BGSource
{
    Q_OBJECT

public:
    /**
     * Create a new BlankBackground.
     */
    BlankBackground(Page* parent);

    /**
     * Destroys the rendered pixmap when the page is deleted.
     */
    virtual ~BlankBackground();

    /**
     * Start the process of creating the background pixmap with the given size.
     * @param size The size of the resulting pixmap.
     */
    void renderBackgroundPixmap(QSizeF size);

    /**
     * Whether the background pixmap is still being rendered.
     */
    bool rendering();

    /**
     * Override for BlankBG.
     */
    virtual BGSource* deepCopy();

private:
    /**
     * The rendered pixmap of this background.
     */
    QPixmap *m_pixmap;
};

#endif
